Skip to content

BUG: iloc.__setitem__ with duplicate columns #32477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Mar 11, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Mar 6, 2020

@jreback jreback added Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Mar 8, 2020
@jreback jreback added this to the 1.1 milestone Mar 8, 2020
pi = plane_indexer[0] if lplane_indexer == 1 else plane_indexer

def isetter(loc, v):
ser = self.obj._ixs(loc, axis=1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you comment that this is not a positional setter

self._ensure_valid_index(value)

# passing loc to sanitize_column is a misnomer, but harmless
# with broadcast=False as long as value is never a DataFrame
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure i unserstand this comment

@jbrockmendel
Copy link
Member Author

updated+green

@jreback jreback merged commit 33f67d9 into pandas-dev:master Mar 11, 2020
@jreback
Copy link
Contributor

jreback commented Mar 11, 2020

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replacing a column with iloc replaces another column with same name BUG: .iloc indexing with duplicates
2 participants